package com.lixueju.security.box.core.enums;

/**
 * @author lixueju
 * @since 2019/11/12 17:50
 **/
public enum LoginTypeEnum implements IEnum{
    username(1, "用户名密码" ),
    sms(2, "短信验证码" ),
    email(3, "邮箱登录" ),
    zhifubao(4, "支付宝登录" ),
    weixin(5, "微信登录" ),
    weixinDecode(6,"微信解密登录");
    /**
     * 枚举码
     */
    private final int code;
    /**
     * 枚举描述
     */
    private final String desc;

    LoginTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String desc() {
        return desc;
    }
}
